const express = require('express');
const router = express.Router();
const uploadController = require('../controllers/uploadController');

// 单文件上传路由
router.post('/single', uploadController.uploadSingleImage);

// 多文件上传路由
router.post('/multiple', uploadController.uploadMultipleImages);

// 通用图片上传路由 - 支持任意字段名的单文件或多文件上传
router.post('/images', uploadController.uploadImages);

// 删除图片路由
router.post('/delete', uploadController.deleteImage);

module.exports = router;